package com.cn.demo4.thread.getobject;

/**
 * @author Administrator
 * 获取线程对象
 *
 */
public class MyRunnable implements Runnable {
    @Override
    public void run() {
        for (int i = 1; i <= 10; i++) {
            System.out.println("线程" + Thread.currentThread().getName() + "开启：执行第" + i + "次");
        }
    }
}
